9cdaac107491c2b75e2ef0e8cda0b3f066c2d944,Mango API/src/com/serotonin/m2m2/web/mvc/rest/v1/model/modules/ModuleModel.java,ModuleModel,ModuleModel,#JsonValue#,52
Before Change
*/
public ModuleModel(JsonValue v) {
this.name = v.getJsonValue("name").toString();
this.version = v.getJsonValue("version").toString();
this.description = v.getJsonValue("shortDescription").toString();
this.longDescription = v.getJsonValue("longDescription").toString();
this.vendor = v.getJsonValue("vendorName").toString();
After Change
JsonValue sub = v.getJsonValue("name");
if(sub != null)
this.name = sub.toString();
sub = v.getJsonValue("version");
if(sub != null)
this.version = sub.toString();
sub = v.getJsonValue("shortDescription");
if(sub!= null)
this.description = sub.toString();